﻿<UserControl x:Class="FM.录音.Views.系统配置视图"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:viewModels="clr-namespace:FM.录音.ViewModels"
             d:DataContext="{d:DesignInstance Type=viewModels:系统配置视图ViewModel,
                                              IsDesignTimeCreatable=True}"
             d:DesignHeight="300"
             d:DesignWidth="300"
             mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="107*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="37*" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0"
                   Grid.Column="0"
                   Text="录音声卡:" />
        <telerik:RadComboBox Grid.Row="0"
                             Grid.Column="1"
                             ItemsSource="{Binding 输入声卡list}" />
        <TextBlock Grid.Row="1"
                   Grid.Column="1"
                   Text="{Binding 录音声卡}" />
        <TextBlock Grid.Row="2"
                   Grid.Column="0"
                   Text="监听声卡:" />

        <telerik:RadComboBox Grid.Row="2"
                             Grid.Column="1"
                             ItemsSource="{Binding 输出声卡list}" />
        <TextBlock Grid.Row="3"
                   Grid.Column="1"
                   Text="{Binding 播放声卡}" />
        <telerik:RadPropertyGrid Grid.Row="4"
                                 Grid.Column="1"
                                 Margin="2,0"
                                 AutoGeneratePropertyDefinitions="False"
                                 IsGrouped="True"
                                 Item="{Binding Model}"
                                 LabelColumnWidth="108">

            <telerik:RadPropertyGrid.PropertyDefinitions>
                <telerik:PropertyDefinition Binding="{Binding 名称}"
                                            Description="修改标题名称"
                                            DisplayName="名称"
                                            GroupName="基本" />
                <telerik:PropertyDefinition Binding="{Binding 保留磁盘空间M}"
                                            Description="磁盘小于此空间即删除旧数据"
                                            DisplayName="保留磁盘空间(M)"
                                            GroupName="基本" />
                <telerik:PropertyDefinition Binding="{Binding 全屏}"
                                            Description="启动时候是否全屏显示,按F11切换"
                                            DisplayName="全屏"
                                            GroupName="基本" />

            </telerik:RadPropertyGrid.PropertyDefinitions>
        </telerik:RadPropertyGrid>
    </Grid>
</UserControl>
